import quantities as quantities
import numpy as numpy

class SensorProperties():

    def __init__(self):
        self.sensorDataSheet=[]
        self.subject=[]
        self.name=[]
        self.vendor=[]
        self.comment=[]
        self.period=0
        self.omnidirectional=[]
        self.measurmentFormat=[]
        self.beams=[]
        self.beams_dimension=[]
        self.position=[]
        self.orientation=[]
        self.uncertainty=[]
        self.validity=1
        self.measurement=[]
        self.timestamp=[]
        self.eventFormat=[]
        
    def getBeamMinMax(self):
        if self.omnidirectional==False:
            xmin=float(self.beams[0][0])
            xmax=float(self.beams[0][1])
            ymin=float(self.beams[0][2])
            ymax=float(self.beams[0][3])
            zmin=float(self.beams[0][4])
            zmax=float(self.beams[0][5])
            output = [xmin, xmax, ymin, ymax, zmin, zmax]
            return output
        else:
            print "no beam conture available !"

class ChannelProperties():
    
    def __init__(self):
        self.subject=[]
        self.period=0
        self.behaviour=[]
        self.eventFormat=[]
        self.channelDataSheet=[]
